package com.automannn.cas.practice.casServerWebflow;

import lombok.extern.slf4j.Slf4j;
import org.apereo.cas.config.CasPersonDirectoryConfiguration;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.ticket.registry.JpaTicketRegistry;
import org.apereo.cas.web.config.CasSupportActionsConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Primary;
import org.springframework.web.servlet.ViewResolver;
import org.thymeleaf.spring4.ISpringTemplateEngine;
import org.thymeleaf.spring4.view.ThymeleafViewResolver;

import java.nio.charset.StandardCharsets;

/**
 * @author chenkh
 * @time 2021/12/20
 */
@SpringBootApplication(exclude = {
        ThymeleafAutoConfiguration.class
})
@EnableConfigurationProperties({ThymeleafProperties.class})
@Slf4j
public class CasServerWithSpringBoot {


    public static void main(String[] args) {
        //写在此处，完全关闭devtools特性，
        //关闭springboot的热部署，在序列化的时候，容易报类转换异常
        System.setProperty("spring.devtools.restart.enabled", "false");


       SpringApplication.run(CasServerWithSpringBoot.class);
    }
}
